package org.jackysoft.mapper;

import java.util.Collection;

import org.apache.ibatis.annotations.Param;
import org.jackysoft.data.MapperDataProvider;
import org.jackysoft.entity.Department;

public interface DepartmentMapper extends MapperDataProvider<Department>{

	Collection<Department> getChildren(@Param("parent")String parent);
	Collection<Department> getChildrenByType(@Param("type") int type);
	Department findByUser(@Param("user")String user);
}
